<include file="Public:header" />
<!-- end nav -->

<!-- begin container -->

<div class=" container-fuid ">

	<div class="row">
		<div class="col-lg-12 col-md-12 col-xs-12" style="background-color: #FFF;">

			<!-- begin tab -->
			<ul class="nav nav-tabs " >
				<li class="active">
					<a href="{:U('Foodcat/index/')}" > <b>商品分类</b>
					</a>
				</li>
				<li>
					<a href="{:U('Foodcat/add/')}" > <b>分类增加</b>
					</a>
				</li>
				<li>
					<a href="{:U('Food/index/')}" >
						<b>商品维护</b>
					</a>
				</li>
				<li>
					<a href="{:U('Food/add/')}" >
						<b>商品增加</b>
					</a>
				</li>

			</ul>
			<p></P>

			<div class="row">
				<div class="col-lg-2 col-md-2 col-xs-2" >
					<a class="btn blue" href="{:U('Foodcat/add/')}"> <i class="fa fa-plus"></i>
						增加分类
					</a>
				</div>
				<div class="col-lg-6 col-md-6 col-xs-6" >
					<span class="help-block">商品分类 如：小炒，酒水，中餐，川菜</span>
				</div>
				<div class="col-lg-4 col-md-4 col-xs-4" ></div>

			</div>
			<!-- end 添加 -->
			<p></P>

			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>ID</th>
						<th>分类名</th>
						<th>排序</th>
						<th>操作</th>

					</tr>
				</thead>
				<tbody>
					<volist name="foodcatlist" id="vo">
						<tr>
							<td>{$vo.fcid}</td>
							<td>{$vo.fcname}</td>
							<td>{$vo.fcsort}</td>
							<td>

								<a  href="{:U('Foodcat/edit/','id='.$vo['fcid'])}" > <i class="fa fa-edit"></i>
									修改
								</a>
								<a  href="{:U('Foodcat/del/','id='.$vo['fcid'])}">
									<i class="fa fa-trash-o"></i>
									删除
								</a>

							</td>

						</tr>
					</volist>
				</tbody>
			</table>

		</div>
		<!-- tab1 -->

	</div>
	<!-- col end -->

</div>

<!-- end container -->

<!-- /.modal -->

<include file="Public:foot" />

<!-- END FOOTER -->
<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->
<!-- BEGIN CORE PLUGINS -->

<script src="__ROOT__/Public/js/jquery.js"></script>
<script src="__ROOT__/Public/js/bootstrap.min.js"></script>
<script >
	
	$('#myModal').on('hidden.bs.modal', function (e) {
	location.reload()

})
$('#ajax').on('hidden.bs.modal', function (e) {
	location.reload()

})


function delcfm() {
if (!confirm("确认要删除？")) {
window.event.returnValue = false;
}
}
</script>